package com.tc.dispatch.web.aaservice;


import javax.ejb.*;

import com.tc.dispatch.aa.ejb.*;

import com.tc.dispatch.web.util.*;
import com.tc.dispatch.web.exception.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class AAHelper {
  public static AA_DPServiceLocal getAA_DPServiceLocal() {
    ServiceLocator sl = ServiceLocator.getInstance();
    try {
      return ( (AA_DPServiceLocalHome) sl.getEJBLocalHome(JNDINames.
          AA_DPService_EJB_LOCAL)).create();
    }
    catch (CreateException ce) {
      throw new WEBSysException("CreateException found.", ce);
    }
  }

}